import React from 'react'
import { useDidShow, useDidHide } from '@tarojs/taro'

export default function app(props) {
  // 对应 onShow
  useDidShow(() => {
    console.log('show')
  })

  // 对应 onHide
  useDidHide(() => {
    console.log('hide')
  })

  return (
    <>
      {props.children}
    </>
  )
}
